query getLinkedPipelines($fullPath: ID!, $iid: ID!) {
  project(fullPath: $fullPath) {
    id
    pipeline(iid: $iid) {
      id
      path
      downstream {
        nodes {
          id
          path
          project {
            id
            name
          }
          detailedStatus {
            id
            group
            icon
            label
          }
          sourceJob {
            id
            retried
          }
        }
      }
      upstream {
        id
        path
        project {
          id
          name
        }
        detailedStatus {
          id
          group
          icon
          label
        }
      }
    }
  }
}
